package com.wf.course.service.impl;

import com.utils.page.PageBean;
import com.wf.course.dao.ICourseLogsMapper;
import com.wf.course.model.course.Courselogs;
import com.wf.course.service.ICourseLogsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional(rollbackFor = Exception.class)
public class ICourseLogsServiceImpl implements ICourseLogsService {

    @Autowired
    private ICourseLogsMapper courseLogsMapper;

    @Override
    public void logs(PageBean<Courselogs> pageBean) {
        pageBean.setResults(courseLogsMapper.list(pageBean));
        pageBean.setTotalCount(courseLogsMapper.count(pageBean));
    }
}
